package cn.usain.controller;

import cn.usain.entity.Feedback;
import cn.usain.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/feedback")
public class FeedbackController {

    @Autowired
    private FeedbackService feedbackService;
    @PostMapping("/save")
    public void submitFeedback(@RequestBody Feedback feedback) {
        feedbackService.submitFeedback(feedback);
    }
}
